<?php
/**
 * Created by PhpStorm.
 * User: 小蛮哼哼哼
 * Email: 243194993@qq.com
 * Date: 2022/3/23
 * Time: 15:31
 * motto: 现在的努力是为了小时候吹过的牛逼！
 */

namespace app\api\controller\v1;

use app\common\model\BuddhaCate;
use app\common\lib\Show;
use app\common\lib\Status;

class Cate extends Base
{
    public function getCateByList(){
        try {
            $lists = (new BuddhaCate())->field('id,title')
                ->where('status', Status::mysql_normal)
                ->select()
                ->toArray();
        }catch (\Exception $e){
            return Show::json_show(Status::mini_error,"内部错误");
        }
        return Show::json_show(Status::mini_normal,"Ok",$lists);
    }
}